<?php

namespace pay\modules\backend\models;

use Yii;

/**
 * This is the model class for table "pay_reward_astrict".
 *
 * @property int $id
 * @property int $app_id
 * @property int $grant_amount
 * @property int $claim_num
 * @property int $claim_amount
 * @property string $ip_white
 */
class RewardAstrict extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'pay_reward_astrict';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['app_id'], 'required'],
            [['app_id', 'grant_amount', 'claim_num', 'claim_amount'], 'integer'],
            [['ip_white'], 'string', 'max' => 1024],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'app_id' => 'App ID',
            'grant_amount' => 'Grant Amount',
            'claim_num' => 'Claim Num',
            'claim_amount' => 'Claim Amount',
            'ip_white' => 'Ip White',
        ];
    }
}
